// TOWN SCRIPT
//    Town 4: Rock

// This is the special encounter script for this town.
// The states INIT_STATE, EXIT_STATE, and START_STATE have
// meanings that are described in the documenation. States you write
// yourself should be numbered from 10-100.

begintownscript;

variables;

int i,j,k;

body;

beginstate INIT_STATE;
	add_range_to_group(6,11,1);
	
	if (get_flag(4,0) == 0) {
		force_instant_terrain_redraw();
		set_flag(4,0,1);
		message_dialog("You enter the eerie rock circle. Inside it, you find a group of men clad in robes. They speak a harsh, brutal, totally unfamiliar language, making strange motions. When they see you, they turn and begin screaming.","You feel strange sensations come over you. They are calling down the power of the gods directly, using strange prayers to gods unknown to you!");
		}
break;

beginstate EXIT_STATE;
// Always called when the town is left.
break;

beginstate START_STATE;
break;

beginstate 10;
	set_flag(4,1,1);
	message_dialog("The strange ones here were keeping a number of powerful healing medicines. They seem healthy and nourishing.","");
break;